<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>04_属性绑定</title>
    <!-- 引入Vue -->
    <script src="../node_modules/vue/dist/vue.js"></script>
</head>

<body>
    <!-- 编写div元素 -->
    <div id="app">
        <a :href="url">百度</a>
        <input type="text" v-model="uName" />
    </div>
    <!-- 编写Vue实例 -->
    <script>
        const vm = new Vue({
            // VM
            el: '#app',
            data: {
                url: 'http://baidu.com',
                uName: 'xiaoming'
            },
            methods: {}
        })
    </script>
</body>

</html>